import { M2C_StartSceneChange } from "../../../../Model/Generate/Share/Message/OuterMessage_C_10001";
import { AMHandler } from "../../../../Model/Share/Module/Message/AMHandler";
import { Session } from "../../../../Model/Share/Module/Message/Session";
import { SceneChangeHelper } from "./SceneChangeHelper";

export class M2C_StartSceneChangeHandler extends AMHandler<M2C_StartSceneChange> {

    protected async Run(session: Session, message: M2C_StartSceneChange) {
        await SceneChangeHelper.SceneChangeTo(session.DomainScene(), message.SceneName, message.SceneInstanceId);
    }

}